<?php						
function get_flash_message($id=0){
	$message_array = array(	"0" => "",
						"1" => "No Hotel Selected",	
						"2" => "Database has been successfully updated",
						"3" => "Image deleted successfully.",
						"4" => "Sorry,could not complete the action.",
						"5" => "No Image ID selected",
						"6" =>"" );
	
	if($id==0 || !is_int($id)){
		return '';
	}else{		
		return $message_array[$id];
	}
}

?>